// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import 'lib-flexible'
import './assets/css/style.css'
import './assets/css/font-awesome.css'
import axios from "axios"
Vue.prototype.axios = axios
//导入axios
// 将axios挂载到vue对象的原型下边以实现全局通用

// 弄一个空的bus
// 在这里的bus不能全局使用
// var bus = new Vue()
 Vue.filter('number',value=>{
    if(value>10000){
      return (value/10000).toFixed(2)+'万'
    }else{
      return value  
    }
  })
  Vue.filter('message',value=>{
    if(value.length>5){
      return value.substr(0,4)+'...'
    }else{
      return value
    }
  })
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
 
})
